<!-- $Id: brand_list.htm 15898 2009-05-04 07:25:41Z liuhui $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
	 <th>{$lang.type_id}</th>
      <th>{if $smarty.request.in_out eq 1}{$lang.type_name1}{else}{$lang.type_name2}{/if}</th>     
      <th>{$lang.is_valid}</th>
	  {if $smarty.request.ismanagestore}
      <th>{$lang.handler}</th>
	  {/if}
    </tr>
    {foreach from=$type_list item=type}
    <tr>
      <td align="center">{$type.type_id}
      </td>
      <td>{$type.type_name}</td>
      <td align="center">{$type.is_valid_val}</td>
	  {if $smarty.request.ismanagestore}
      <td align="center">
	    {if !$type.is_noedit}
        <a href="store_inout_type.php?act=edit&id={$type.type_id}" title="{$lang.edit}">{$lang.edit}</a> |
        <a href="javascript:;" onclick="listTable.remove({$type.type_id}, '{$lang.drop_confirm}')" title="{$lang.edit}">{$lang.remove}</a> 
		{/if}
      </td>
	  {/if}
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
    {/foreach}
    <tr>
      <td align="right" nowrap="true" colspan="6">
      {include file="page.htm"}
      </td>
    </tr>
  </table>

{if $full_page}
<!-- end brand list -->
</div>
</form>

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  {/literal}
  //-->
</script>
{include file="pagefooter.htm"}
{/if}